package com.cjc.hotel.server.service;

import com.cjc.hotel.server.entity.TAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjc.hotel.server.entity.vo.AdminVo;
import com.cjc.hotel.server.result.Result;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chenjuncai
 */
public interface TAdminService extends IService<TAdmin>{

    /**
     * 登录
     * @param adminVo 参数
     * @param request 参数
     * @return 结果
     */
    Result<String> login(AdminVo adminVo, HttpServletRequest request);
    /**
     * 注册
     * @param adminVo 参数
     * @return 结果
     */
    Result<String> register(AdminVo adminVo);
}
